;
(function () {
  'use strict';
  angular.module('controllers.userBehaviorAnalysis.userChurnAnalysis')
    .controller('userLossDIAnalysisCtrl', userLossDIAnalysisCtrl);

  function userLossDIAnalysisCtrl($scope, userLossDIAnalysisService, CoreService, $rootScope,$mdDialog,COREDATA) {
    $scope.userLossDIAnalysis = userLossDIAnalysisService;
    userLossDIAnalysisService.initSelectMenu();
    $scope.exportUrl = COREDATA.FORMPREFIX + 'analysisUserBehavior/userChurnRate/churnInfoExport';
    $rootScope.$on('$stateChangeSuccess', function (event, state) {
      userLossDIAnalysisService.reset();
      $mdDialog.hide();
    });
  }

  userLossDIAnalysisCtrl.$inject = ['$scope', 'userLossDIAnalysisService', 'CoreService', '$rootScope','$mdDialog','COREDATA'];
})();